<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!-- 开始循环 -->
<c:choose>
    <c:when test="${not empty checkList}">
        <c:if test="${QX.cha == 1 }">
            <c:forEach items="${checkList}" var="d" varStatus="vs">
                <tr>
                    <td class='center' style="width: 30px;">
                        <label><input type='checkbox' name='ids'
                                      value="${d.id }" id="${d.id }"
                                      alt="${d.id}" class="ace js_btn_qry_check_detail"/>
                            <span class="lbl"></span></label>
                    </td>
                    <%--编号	对账单号	对账单位	对账人员	对账日期
                    对账金额	发票申请单号	委托人--%>
                    <td class='center' style="width: 30px;">${vs.index+1}</td>
                    <td class="center js_btn_qry_check_detail" val="${d.id}"
                        style="text-decoration: underline">${d.checkCode}</td>
                    <td class="center">${d.checkDeptName }<input type="hidden" id="checkDept" name="checkDept" value="${d.checkDept}"/></td>
                    <td class="center">${d.checkerName }</td>
                    <td class="center">
                        <fmt:formatDate pattern="yyyy/MM/dd"
                                        value="${d.createDate}" />
                    </td>
                    <td class="center">
                     
                     <if test="${d.checkRmbAmount}!=null and ${d.checkRmbAmount}!=''">
                       RMB:${d.checkRmbAmount}
                     </if>
                     <if test="${d.checkRmbAmount}!=null and ${d.checkRmbAmount}!='' and ${d.checkUsdAmount}!=null and ${d.checkUsdAmount}!=''">
                     ,
                     </if>
                     <if test="${d.checkUsdAmount}!=null and ${d.checkUsdAmount}!=''">
                       USD:${d.checkUsdAmount}
                      </if>
                    </td>
                    <td class="center">${d.invoice_app_code}</td>
                    <td class="center">${d.checkerName}</td>
                </tr>
            </c:forEach>
        </c:if>
        <c:if test="${QX.cha == 0 }">
            <tr>
                <td colspan="100" class="center">您无权查看</td>
            </tr>
        </c:if>
    </c:when>
    <c:otherwise>
        <tr class="main_info">
            <td colspan="100" class="center">没有相关数据</td>
        </tr>
    </c:otherwise>
</c:choose>
<tr>
    <td style="vertical-align:top;text-align: left" colspan="7">
        <div class="pagination"
             style="float: left;padding-top: 0px;margin-top: 0px;">
            <ul class="pagination pull-right no-margin">
                <li><a>共<font color=red>${page.totalResult}</font>条</a></li>
                <li><input type="number" value=""
                           class="js_toGoPage"
                           style="width:50px;text-align:center;float:left"
                           placeholder="页码"/></li>
                <li style="cursor:pointer;">
                    <a class="js_go btn btn-mini btn-success">跳转</a></li>
                <li><a class="js_page" item="1">|&lt;</a></li>
                <li><a class="js_page" item="${page.currentPage-1}">&lt;</a></li>
                <li class="active"><a><font color='white'>
                    ${page.currentPage}</font></a></li>
                <li><a class="js_page" item="${page.currentPage+1}">&gt;</a></li>
                <li><a class="js_page" item="${page.totalPage}">&gt;|</a></li>
                <%--<input class="curr" type="hidden" value="${page.currentPage}" />--%>
                <li><a>${page.showCount}条/页,共${page.totalPage}页</a></li>
                <li><select title='显示条数'
                            style="width:55px;float:left;margin-top:1px;" class="js_selectSize">
                    <option value='0'></option>
                    <option value='10'>10</option>
                    <option value='20'>20</option>
                    <option value='30'>30</option>
                    <option value='40'>40</option>
                    <option value='50'>50</option>
                    <option value='60'>60</option>
                    <option value='70'>70</option>
                    <option value='80'>80</option>
                    <option value='90'>90</option>
                    <option value='99'>99</option>
                </select>
                </li>
            </ul>
            <script type="text/javascript">
                $(".js_page").click(function (evt) {
                    var page = $(evt.target).attr("item");
                    $($("input[name='page.currentPage']")[1]).val(page);
                    $(".js_btn_qry_check").click();
                });
                $(".js_go").click(function (evt) {
                    var page = $($(".js_toGoPage")[1]).val();
                    $($("input[name='page.currentPage']")[1]).val(page);
                    //$($("input[name='page.showCount']")[1]).val(value);
                    $(".js_btn_qry_check").click();
                });
                $(".js_selectSize").change(function (evt){
                    var value = $(evt.target).val();
                    $($("input[name='page.currentPage']")[1]).val(1);
                    $($("input[name='page.showCount']")[1]).val(value);
                    $(".js_btn_qry_check").click();
                });
            </script>
        </div>
    </td>
</tr>